Skip to content

chore(ci): pin actions to commit SHAs and harden workflow permissions - #26

Closed
Pigbibi wants to merge 1 commit into
mainfrom
chore/p0-workflow-hardening
Closed

Pigbibi wants to merge 1 commit into
mainfrom
chore/p0-workflow-hardening

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI assistance

Antigravity (Gemini)

What changed

  • Pin third-party GitHub Actions references to immutable 40-character commit SHAs.
  • Update Pigbibi/PrGovernance/pr-governance to 7fe2ee20a3ee144ea944619e1c56f7ed5edc9152.
  • Add explicit top-level permissions: contents: read where missing and retention-days: 14 on upload-artifact steps.
  • Reduce scheduled risk-gate.yml / codex-nudge.yml sweep frequency (17 3 * * * / 15 2,14 * * *) and align affected workflow-contract tests.

How verified

  • Validated all modified workflow YAML files with yaml.safe_load.
  • Verified repository CI checks (test, Documentation check, Gitleaks, Commit message convention) on this PR.

Why

Resolves P0/P1 supply-chain pinning, least-privilege GITHUB_TOKEN, artifact retention, and redundant governance cron runs identified in the cross-org audit.

Risk

R2 (.github/workflows/ changes): cleared with agent-approved label and @codex review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T08:17:19.093275Z 4d4e0b4 Manual request
🔒 Security Review ✅ Completed 2026-11-22T08:19:06.374632Z 4d4e0b4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 22, 2026
@Pigbibi

Pigbibi commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d4e0b4d72

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +35 to +36
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve the public-content rule before adding literal commit IDs

These new literal action commit IDs conflict with the repository's explicit public-content boundary, which prohibits commit IDs or digests that identify real objects in public material. The same issue applies to the new pins in engineering-governance.yml and risk-gate.yml; these are tracked workflows, so their exclusion from the Pages artifact does not satisfy that rule. Obtain an explicit policy exception for public dependency pins before publishing these identifiers.

AGENTS.md reference: AGENTS.md:L12-L16

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4d4e0b4d72

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi
Pigbibi enabled auto-merge (squash) November 22, 2026 09:15
@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing stale PR #26: engineering-governance.yml and risk-gate.yml are already pinned on main; pinning third-party action commit SHAs in pages.yml requires an explicit AGENTS.md content-boundary exception per review.

@Pigbibi Pigbibi closed this Nov 23, 2026
auto-merge was automatically disabled November 23, 2026 10:19

Pull request was closed

@Pigbibi
Pigbibi deleted the chore/p0-workflow-hardening branch November 23, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant